package com.xt.favorites.admin.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xt.common.utils.PageUtils;
import com.xt.common.utils.Query;

import com.xt.favorites.admin.dao.PraiseDao;
import com.xt.favorites.admin.entity.PraiseEntity;
import com.xt.favorites.admin.service.PraiseService;


@Service("praiseService")
public class PraiseServiceImpl extends ServiceImpl<PraiseDao, PraiseEntity> implements PraiseService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PraiseEntity> page = this.page(
                new Query<PraiseEntity>().getPage(params),
                new QueryWrapper<PraiseEntity>()
        );

        return new PageUtils(page);
    }

}